# Python异常处理机制的底层实现
try:
    a = int(input("输入 a:"))
    b = int(input("输入 b:"))
    print(a / b)
except ValueError:
    print("数值错误：程序只能接收整数参数")
except ArithmeticError:
    print("算术错误")
except Exception:
    print("未知异常")
